﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FazaDemo.WebSiteMvc.Controllers;
using FazaDemo.ViewModels;

namespace FazaDemo.WebSiteMvc.Tests
{

   [TestClass]
    public class AutorizationControllerTest
    {

       [TestMethod]
       public void LoginTest()
       {
           var controller = new AutorizationController();
           var result = controller.Login(new LoginViewModel {UserName = "sysdba"}) as RedirectToRouteResult;
           Assert.IsNotNull(result);
           //Assert.AreEqual("Root", result.RouteValues.Values);
       }

    }
}
